package com.w.usercenter.mode.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户类
 *
 * @author w
 */
@TableName(value = "user")
@Data
public class User implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 用户表ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 昵称
     */
    @TableField(value = "username")
    private String username;

    /**
     * 登录账户
     */
    @TableField(value = "userAccount")
    private String userAccount;

    /**
     * 头像
     */
    @TableField(value = "avatarUrl")
    private String avatarUrl;

    /**
     * 性别0-男,1-女
     */
    @TableField(value = "gender")
    private Integer gender;

    /**
     * 密码
     */
    @TableField(value = "userPassword")
    private String userPassword;

    /**
     * 电话
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 用户状态 0-正常,1-封号
     */
    @TableField(value = "userStatus")
    private Integer userStatus;
    /**
     * 用户角色 0-普通成员,1-管理员
     */
    @TableField(value = "userRole")
    private Integer userRole;
    /**
     * 星球编码
     */
    @TableField(value = "planetCode")
    private String planetCode;
    /**
     * 标签
     */
    @TableField(value = "tags")
    private String tags;
    /**
     * 个人简介
     */
    @TableField(value = "profile")
    private String profile;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "updateTime")
    private Date updateTime;

    /**
     * 是否删除 0-正常,1-删除
     */
    @TableField(value = "isDelete")
    @TableLogic
    private Integer isDelete;
    /**
     * 创建时间-开始时间
     */
    @TableField(exist = false)
    private String startTime;
    /**
     * 创建时间-结束时间
     */
    @TableField(exist = false)
    private String endTime;

}